﻿@{
    Layout = null;
    ViewBag.Title = "PersonnelAttendanceIndex";
    int j = 0;
}

<div class="pageContent" style="padding: 5px">
    <div layouth="11" style="float: left; display: block; overflow: auto; width: 170px; border: solid 1px #CCC; line-height: 21px; background: #fff">
        <ul class="tree treeFolder">
            @*0=监理单位，1=土建，2=路面，3=交安，4=绿化，5=房建，6=机电，7=污水*@
           
           @if (ViewBag.type=="0")
           {
                if (Model.TheSupervisionList.Count > 0)
            { 
                <li><a href="javascript">合同号</a>
                    <ul>
                        @foreach (var info in Model.TheSupervisionList)
                        {
                            var liId = "cl" + j;
                            <li><a id="@liId" href="@Url.Action("ThreePersonnelList", "ScmThreePersonnel", new { Section = info.SUPERVISION_CODE })" target="ajax" rel="tzgl_slry_list">
                                @info.SUPERVISION_CODE  </a>
                            </li>
                            j++;
                        }
                    </ul>
                </li>
            }  
           }     
             @if (ViewBag.type=="1")
           {
                if (Model.TheSupervisingList.Count > 0)
            { 
                <li><a href="javascript">合同号</a>
                    <ul>
                        @foreach (var info in Model.TheSupervisingList)
                        {
                            var liId = "cl" + j;
                            <li><a id="@liId" href="@Url.Action("ThreePersonnelList", "ScmThreePersonnel", new { Section = info.Supervising_Code })" target="ajax" rel="tzgl_slry_list">
                                @info.Supervising_Code  </a>
                            </li>
                            j++;
                        }
                    </ul>
                </li>
            }  
           }     
             @if (ViewBag.type=="2")
           {
                if (Model.TheVerifyList.Count > 0)
            { 
                <li><a href="javascript">合同号</a>
                    <ul>
                        @foreach (var info in Model.TheVerifyList)
                        {
                            var liId = "cl" + j;
                            <li><a id="@liId" href="@Url.Action("ThreePersonnelList", "ScmThreePersonnel", new { Section = info.VERIFY_CODE })" target="ajax" rel="tzgl_slry_list">
                                @info.VERIFY_CODE  </a>
                            </li>
                            j++;
                        }
                    </ul>
                </li>
            }  
           }     
                    
        </ul>
    </div>

    <div id="tzgl_slry_list" class="unitBox" style="margin-left: 176px;">
        <!--#include virtual="list1.html" -->
    </div>
</div>
